package wangjg.mda.lang;

import java.util.List;

public class MyMethod extends MyElement {
	private int namePos;
	private String name;
	private List<MyParameter> parameters ;
	private String returnType;
	private List<String> throwz;
	private String modifiers;
	private List<MyAnnotation> annos;
	private MyComment comment;
	
	public MyMethod() {
		super();
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getReturnType() {
		return returnType;
	}
	public void setReturnType(String returnType) {
		this.returnType = returnType;
	}

	public List<MyParameter> getParameters() {
		return parameters;
	}
	public void setParameters(List<MyParameter> parameters) {
		this.parameters = parameters;
	}
	public List<MyAnnotation> getAnnos() {
		return annos;
	}
	public void setAnnos(List<MyAnnotation> annos) {
		this.annos = annos;
	}
	public MyComment getComment() {
		return comment;
	}
	public void setComment(MyComment comment) {
		this.comment = comment;
	}
	public String getModifiers() {
		return modifiers;
	}
	public void setModifiers(String modifiers) {
		this.modifiers = modifiers;
	}
	public List<String> getThrowz() {
		return throwz;
	}
	public void setThrowz(List<String> throwz) {
		this.throwz = throwz;
	}
	public int getNamePos() {
		return namePos;
	}
	public void setNamePos(int namePos) {
		this.namePos = namePos;
	}
	@Override
	public String toString() {
		return "\n\t\tMyMethod [name=" + name + ", parameters=" + parameters
				+ ", returnType=" + returnType + ", throwz=" + throwz
				+ ", modifiers=" + modifiers + ", annos=" + annos
				+ ", comment=" + comment + "]";
	}
}
